from time import sleep
import time
from datetime import datetime,time

def wrapper(func):
    def inner(*args, **kwargs):
        print('befor')
        func()
        print('after')
    return inner


@wrapper
def func1():
    print('do something')
func1()